<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<script>
    //    var arrSimple=new Array(1,8,7,6);
    //    arrSimple.sort();
    //    document.writeln(arrSimple.join());

    //var arrSimple2=new Array(1,8,7,6);
    //arrSimple2.sort(function(a,b){
    //    return b-a});
    //document.writeln(arrSimple2.join());
</script>
</body>
</html>